package com.hos.punchtheclocksystem.controller;

import com.hos.punchtheclocksystem.framework.Result;
import com.hos.punchtheclocksystem.framework.ResultUtil;
import com.hos.punchtheclocksystem.pojo.Message;
import com.hos.punchtheclocksystem.service.MessageService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/message")
public class MessageController {
    @Resource
    MessageService messageService;

    @PostMapping("/save")
    Result<String> insert(Message entity){
        messageService.insert(entity);

        return ResultUtil.ok();
    }
}
